<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::AbstractBudgetMaintenanceStrategy&lt; InputType &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html">AbstractBudgetMaintenanceStrategy</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_abstract_budget_maintenance_strategy-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::AbstractBudgetMaintenanceStrategy&lt; InputType &gt; Class Template Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div></div>
</div><!--header-->
<div class="contents">

<p>This is the abstract interface for any budget maintenance strategy.  
 <a href="classshark_1_1_abstract_budget_maintenance_strategy.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html">shark/Algorithms/Trainers/Budgeted/AbstractBudgetMaintenanceStrategy.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::AbstractBudgetMaintenanceStrategy&lt; InputType &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_abstract_budget_maintenance_strategy__inherit__graph.png" border="0" usemap="#ashark_1_1_abstract_budget_maintenance_strategy_3_01_input_type_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_abstract_budget_maintenance_strategy_3_01_input_type_01_4_inherit__map" id="ashark_1_1_abstract_budget_maintenance_strategy_3_01_input_type_01_4_inherit__map">
<area shape="rect" title="This is the abstract interface for any budget maintenance strategy." alt="" coords="5,71,231,111"/>
<area shape="rect" href="classshark_1_1_merge_budget_maintenance_strategy.html" title="Budget maintenance strategy that merges two vectors." alt="" coords="285,5,498,46"/>
<area shape="poly" title=" " alt="" coords="220,64,303,44,304,49,222,69"/>
<area shape="rect" href="classshark_1_1_project_budget_maintenance_strategy.html" title="Budget maintenance strategy that projects a vector." alt="" coords="283,71,500,111"/>
<area shape="poly" title=" " alt="" coords="246,88,282,88,282,94,246,94"/>
<area shape="rect" href="classshark_1_1_remove_budget_maintenance_strategy.html" title="Budget maintenance strategy that removes a vector." alt="" coords="279,136,504,177"/>
<area shape="poly" title=" " alt="" coords="222,113,304,133,303,138,220,118"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a2fce0a0656e77df1f5e54bea0d3c9f6b" id="r_a2fce0a0656e77df1f5e54bea0d3c9f6b"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_kernel_expansion.html">KernelExpansion</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#a2fce0a0656e77df1f5e54bea0d3c9f6b">ModelType</a></td></tr>
<tr class="separator:a2fce0a0656e77df1f5e54bea0d3c9f6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7027102ef6150ec0de810886b8098718" id="r_a7027102ef6150ec0de810886b8098718"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, unsigned int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#a7027102ef6150ec0de810886b8098718">DataType</a></td></tr>
<tr class="separator:a7027102ef6150ec0de810886b8098718"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e4e18bcc754402146beb894a7c3d7cd" id="r_a4e4e18bcc754402146beb894a7c3d7cd"><td class="memItemLeft" align="right" valign="top">typedef DataType::element_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#a4e4e18bcc754402146beb894a7c3d7cd">ElementType</a></td></tr>
<tr class="separator:a4e4e18bcc754402146beb894a7c3d7cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2a6d7afdbb1e6dc61f86619dd526a544" id="r_a2a6d7afdbb1e6dc61f86619dd526a544"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#a2a6d7afdbb1e6dc61f86619dd526a544">AbstractBudgetMaintenanceStrategy</a> ()</td></tr>
<tr class="separator:a2a6d7afdbb1e6dc61f86619dd526a544"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a763d8224ee45bb2bb727cb05ac002b94" id="r_a763d8224ee45bb2bb727cb05ac002b94"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#a763d8224ee45bb2bb727cb05ac002b94">addToModel</a> (<a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#a2fce0a0656e77df1f5e54bea0d3c9f6b">ModelType</a> &amp;model, <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> const &amp;alpha, <a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#a4e4e18bcc754402146beb894a7c3d7cd">ElementType</a> const &amp;supportVector)=0</td></tr>
<tr class="separator:a763d8224ee45bb2bb727cb05ac002b94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa96771736bedb9e44f820e871ed98350" id="r_aa96771736bedb9e44f820e871ed98350"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#aa96771736bedb9e44f820e871ed98350">name</a> () const</td></tr>
<tr class="memdesc:aa96771736bedb9e44f820e871ed98350"><td class="mdescLeft">&#160;</td><td class="mdescRight">return the class name  <br /></td></tr>
<tr class="separator:aa96771736bedb9e44f820e871ed98350"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ab6ab9d070c0988b041e96e66888a1841" id="r_ab6ab9d070c0988b041e96e66888a1841"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#ab6ab9d070c0988b041e96e66888a1841">findSmallestVector</a> (<a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#a2fce0a0656e77df1f5e54bea0d3c9f6b">ModelType</a> const &amp;model, size_t &amp;minIndex, double &amp;minAlpha)</td></tr>
<tr class="separator:ab6ab9d070c0988b041e96e66888a1841"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>&gt;<br />
class shark::AbstractBudgetMaintenanceStrategy&lt; InputType &gt;</div><p>This is the abstract interface for any budget maintenance strategy. </p>
<p>To allow for easy exchange of budget maintenance strategies, each of them should derive from this class. The only function it defines is addToModel, which, when implemented, will add a given supportvector and given alphas to the provided model by applying the respective budget maintenance strategy. (Note that not all merging strategies need the alphas, but some do) </p>

<p class="definition">Definition at line <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html#l00062">62</a> of file <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html">AbstractBudgetMaintenanceStrategy.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a7027102ef6150ec0de810886b8098718" name="a7027102ef6150ec0de810886b8098718"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7027102ef6150ec0de810886b8098718">&#9670;&#160;</a></span>DataType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt;<a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, unsigned int&gt; <a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html">shark::AbstractBudgetMaintenanceStrategy</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt;::DataType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html#l00067">67</a> of file <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html">AbstractBudgetMaintenanceStrategy.h</a>.</p>

</div>
</div>
<a id="a4e4e18bcc754402146beb894a7c3d7cd" name="a4e4e18bcc754402146beb894a7c3d7cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e4e18bcc754402146beb894a7c3d7cd">&#9670;&#160;</a></span>ElementType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef DataType::element_type <a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html">shark::AbstractBudgetMaintenanceStrategy</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt;::ElementType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html#l00068">68</a> of file <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html">AbstractBudgetMaintenanceStrategy.h</a>.</p>

</div>
</div>
<a id="a2fce0a0656e77df1f5e54bea0d3c9f6b" name="a2fce0a0656e77df1f5e54bea0d3c9f6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2fce0a0656e77df1f5e54bea0d3c9f6b">&#9670;&#160;</a></span>ModelType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_kernel_expansion.html">KernelExpansion</a>&lt;<a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>&gt; <a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html">shark::AbstractBudgetMaintenanceStrategy</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt;::ModelType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html#l00066">66</a> of file <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html">AbstractBudgetMaintenanceStrategy.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a2a6d7afdbb1e6dc61f86619dd526a544" name="a2a6d7afdbb1e6dc61f86619dd526a544"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a6d7afdbb1e6dc61f86619dd526a544">&#9670;&#160;</a></span>AbstractBudgetMaintenanceStrategy()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html">shark::AbstractBudgetMaintenanceStrategy</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt;::AbstractBudgetMaintenanceStrategy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html#l00070">70</a> of file <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html">AbstractBudgetMaintenanceStrategy.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a763d8224ee45bb2bb727cb05ac002b94" name="a763d8224ee45bb2bb727cb05ac002b94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a763d8224ee45bb2bb727cb05ac002b94">&#9670;&#160;</a></span>addToModel()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html">shark::AbstractBudgetMaintenanceStrategy</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt;::addToModel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#a2fce0a0656e77df1f5e54bea0d3c9f6b">ModelType</a> &amp;&#160;</td>
          <td class="paramname"><em>model</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> const &amp;&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#a4e4e18bcc754402146beb894a7c3d7cd">ElementType</a> const &amp;&#160;</td>
          <td class="paramname"><em>supportVector</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>this is the main interface, which adds a given supportvector with given alpha coefficients to the model.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">model</td><td>the model the strategy will work with </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">alpha</td><td>alphas for the new budget vector </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">supportVector</td><td>the vector to add to the model by applying the maintenance strategy </td></tr>
  </table>
  </dd>
</dl>

<p>Implemented in <a class="el" href="classshark_1_1_merge_budget_maintenance_strategy_3_01_real_vector_01_4.html#a26faf1b7720149479335a6cf8aeebb38">shark::MergeBudgetMaintenanceStrategy&lt; RealVector &gt;</a>, <a class="el" href="classshark_1_1_project_budget_maintenance_strategy.html#a2c1ffe6ed6921945f7e9b955baf1b0cf">shark::ProjectBudgetMaintenanceStrategy&lt; InputType &gt;</a>, and <a class="el" href="classshark_1_1_remove_budget_maintenance_strategy.html#a795f1710e6f333fcf7c7baad2e7bcc54">shark::RemoveBudgetMaintenanceStrategy&lt; InputType &gt;</a>.</p>

</div>
</div>
<a id="ab6ab9d070c0988b041e96e66888a1841" name="ab6ab9d070c0988b041e96e66888a1841"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6ab9d070c0988b041e96e66888a1841">&#9670;&#160;</a></span>findSmallestVector()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html">shark::AbstractBudgetMaintenanceStrategy</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt;::findSmallestVector </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html#a2fce0a0656e77df1f5e54bea0d3c9f6b">ModelType</a> const &amp;&#160;</td>
          <td class="paramname"><em>model</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t &amp;&#160;</td>
          <td class="paramname"><em>minIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>minAlpha</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>this will find the vector with the smallest alpha, measured in 2-norm in the given model. now there is a special case: if there is somewhere a zero coefficient, then obviously this is the smallest element. in this case we just proceed as usual. the caller must decide what to do with such a vector. </p><dl class="section user"><dt>note: The model is not allowed to be empty and an exception is thrown in this case.</dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the model we want to search </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">minIndex</td><td>the index of the vector with smallest coefficient </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">minAlpha</td><td>the 2-norm of the alpha coefficient of the found vector </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html#l00095">95</a> of file <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html">AbstractBudgetMaintenanceStrategy.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_kernel_expansion.html#a3c65dfd17f38eaa461f6400d302fae48">shark::KernelExpansion&lt; InputType &gt;::alpha()</a>, and <a class="el" href="_exception_8h.html#adce1f80097c69010f5eab2618fa2e971">SHARK_RUNTIME_CHECK</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_merge_budget_maintenance_strategy_3_01_real_vector_01_4.html#a26faf1b7720149479335a6cf8aeebb38">shark::MergeBudgetMaintenanceStrategy&lt; RealVector &gt;::addToModel()</a>, <a class="el" href="classshark_1_1_project_budget_maintenance_strategy_3_01_real_vector_01_4.html#a716c4803d4a64e0e30ef4d57032ed5d9">shark::ProjectBudgetMaintenanceStrategy&lt; RealVector &gt;::addToModel()</a>, and <a class="el" href="classshark_1_1_remove_budget_maintenance_strategy.html#a795f1710e6f333fcf7c7baad2e7bcc54">shark::RemoveBudgetMaintenanceStrategy&lt; InputType &gt;::addToModel()</a>.</p>

</div>
</div>
<a id="aa96771736bedb9e44f820e871ed98350" name="aa96771736bedb9e44f820e871ed98350"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa96771736bedb9e44f820e871ed98350">&#9670;&#160;</a></span>name()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="classshark_1_1_abstract_budget_maintenance_strategy.html">shark::AbstractBudgetMaintenanceStrategy</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt;::name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>return the class name </p>

<p class="definition">Definition at line <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html#l00117">117</a> of file <a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html">AbstractBudgetMaintenanceStrategy.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Algorithms/Trainers/Budgeted/<a class="el" href="_abstract_budget_maintenance_strategy_8h_source.html">AbstractBudgetMaintenanceStrategy.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
